package cn.cvs.dao;

import cn.cvs.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    List<SysRole> selectList() throws Exception;

    int add(SysRole sysRole) throws Exception;

    int deleteById(@Param("id") Integer id) throws Exception;

    int update(SysRole sysRole) throws Exception;

    SysRole selectById(@Param("id") Integer id) throws Exception;

    int selectByCode(@Param("code") String code) throws Exception;
}
